package com.bytedance.lucky.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户账号相关
 *
 * @author zouyaowen
 * @date 2021-02-12
 */
@RestController
@Slf4j
@RequestMapping("/user")
public class UserController {

    @GetMapping("/test")
    public String test() {
        log.info("test");
        return "HelloWorld";
    }

    @PostMapping("/pre-register-verify")
    public String register(String email) {
        return "";
    }

    @PostMapping("/register")
    public String register(String email, String verifyCode, String password) {
        log.info("register");
        return "register";
    }

    @PostMapping("/login")
    public String login(String email, String password) {
        log.info("login");
        return "login";
    }

}
